from django.db import models
from django.contrib.auth.models import AbstractBaseUser
class User(AbstractBaseUser):
    mobile = models.CharField(max_length=11)
    identifier = models.CharField(max_length=40, unique=True)
    USERNAME_FIELD = 'identifier'
    class Meta:
        db_table='tb_users'
